<?php
$this->breadcrumbs=array(
	$type=>array('/node', 'tid'=>$node->tid),
	$node->title=>array('/node/view/', 'id'=>$node->id),
	'讨论',
);

$this->menu=array(
	array('label'=>'创建讨论', 'url'=>array('create')),
	array('label'=>'管理讨论', 'url'=>array('admin')),
);

$this->category = HandleBox::getCategory();
?>

<h1>“<?php echo $node->title; ?>” 讨论</h1>

<?php 
	if (!Yii::app()->user->isGuest){
		echo $this->renderPartial('_form', array('model'=>$model)); 
	}
?>	

<?php $this->widget('zii.widgets.CListView', array(
	'dataProvider'=>$dataProvider,
	'itemView'=>'_view',
	'viewData' => array( // 传递附加数据
		'count'=>$dataProvider->totalItemCount),
)); ?>
